miscellaneous cleanup
authorJan Beulich <jbeulich@suse.com>
Thu, 17 Jan 2013 09:56:34 +0000 (10:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 17 Jan 2013 09:56:34 +0000 (10:56 +0100)
commitcda084b3d8901dab95f22aa6047e103e1032d486
tree1667d5ddff071a9be2a3be8d57237cebc3dd2d34
parent39bc4673785f6455242f514ea0fa9359bdf1639c
miscellaneous cleanup

... noticed while putting together the 16Tb support patches for x86.

Briefly, this (in order of the changes below)
- fixes an inefficiency in x86's context switch code (translations to/
  from struct page are more involved than to/from MFNs)
- drop unnecessary MFM-to-page conversions
- drop a redundant call to destroy_xen_mappings() (an indentical call
  is being made a few lines up)
- simplify a VA-to-MFN translation
- drop dead code (several occurrences)
- add a missing __init annotation

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/domain.c
xen/arch/x86/x86_64/mm.c
xen/common/domctl.c
xen/include/asm-arm/mm.h
xen/include/asm-x86/config.h
xen/include/asm-x86/mm.h
xen/include/asm-x86/page.h
xen/xsm/xsm_policy.c